﻿@using xConnected.Common.ExpertProfile
<div class="modal hide fade" id="HourDayRatesProfileDialog" style="display: none;" >
    <div class="modal-header">
    </div>
    <div class="modal-body" data-bind="with: workingProfileBuffer">
        <div class="row-fluid">
            <div class="control-group" data-bind="css: {'error': HourRate.isValid() == false }" >
                <label class="control-label" for="HourRate"><strong>@Resources.HourRate </strong></label>
                <div class="controls">
                    <div  >
                        <div class="input-append">
                            <input class="input-mini" data-bind="value: HourRate" type="text" style="text-align: right"/>
                            <span class="add-on">€</span>
                        </div>
                    </div>
                    <span class="help-inline" data-bind="validationMessage: HourRate"></span>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="control-group" data-bind="css: {'error': DailyRate.isValid() == false }" >
                <label class="control-label" for="DailyRate"><strong>@Resources.DayRate </strong></label>
                <div class="controls">
                    <div >
                        <div class="input-append">
                            <input  class="input-mini" data-bind="value: DailyRate" type="text" style="text-align: right"/>
                            <span class="add-on">€</span>
                        </div>
                    </div>
                    <span class="help-inline" data-bind="validationMessage: DailyRate"></span>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <a href="#" class="btn btn-small btn-info" data-bind="click: function() { $root.profile.okHourDayRates();}"><strong>@Resources.Ok</strong></a>
        <a href="#" class="btn btn-small" data-bind="click: function() { $root.profile.cancelHourDayRates();}"><strong>@Resources.Cancel</strong></a>
    </div>
</div>